export default {
  data () {
    return {
      formFields: [this.field],
    }
  },

  methods: {
    // 获取表单提交数据
     getFieldsDatas (formFields) {
      const fieldsValue = this.form.getFieldsValue()

      const datas = formFields
        .map(({ field: f, value, label, callback }) => {
          return {
            field: f.id,
            field_value: { value: callback(fieldsValue[label]) },
          }
        })

      return datas
    },
  },
}
